package com.bawei.model_sevent.Activity.Adapter;

import android.widget.ImageView;

import com.bawei.model_sevent.Activity.Banner.BannerBean;
import com.bawei.model_sevent.R;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

/**
 * 时间：2021/11/16 18:39.
 * 类名：ShangPingAdapter
 * 作用：Model_sevent
 * 作者:张羽_zy
 */
public class ShangPingAdapter extends BaseQuickAdapter<BannerBean.DataBean, BaseViewHolder> {
    public ShangPingAdapter(@Nullable List<BannerBean.DataBean> data) {
        super(R.layout.show_huobao02, data);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, BannerBean.DataBean dataBean) {
        Glide.with(getContext()).load(dataBean.getPictUrl()).into((ImageView) baseViewHolder.getView(R.id.img_huo02));
    }
}
